﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BlackBBS.Enums;

namespace BlackBBS.Models.Data
{
    [Serializable]
    public class Address 
    {
        public string Address1 { get; set; }
        public string Address2 { get; set; }
        public string City { get; set; }
        public string StateOrLocal { get; set; }
        public string Postal { get; set; }
        public string County { get; set; }

        public string CallingFrom
        {
            get
            {
                return string.Format("{0}{1}{2}",
                                     this.City,
                                     string.IsNullOrEmpty(this.StateOrLocal) ? string.Empty : this.StateOrLocal,
                                     string.IsNullOrEmpty(this.County) ? string.Empty : ", " + this.County
                                     );
            }
        }
    }
}
